Imports System.Configuration.ConfigurationSettings

Public Class Config
    Public Shared ReadOnly Property ConnectionString() As String
        Get
            Return AppSettings("ConnectionString")
        End Get
    End Property

    Public Shared ReadOnly Property AppRoot() As String
        Get
            Return AppSettings("AppRoot")
        End Get
    End Property

    Public Shared ReadOnly Property PONOOffice() As String
        Get
            Return AppSettings("PONOOffice")
        End Get
    End Property

    Public Shared ReadOnly Property ScheduleDate() As DayOfWeek
        Get
            Return CType(AppSettings("ScheduleDate"), DayOfWeek)
        End Get
    End Property

    Public Shared ReadOnly Property ScheduleHour() As Int32
        Get
            Return Convert.ToInt32(AppSettings("ScheduleHour"))
        End Get
    End Property

    Public Shared ReadOnly Property TimerInterval() As Int32
        Get
            Return Convert.ToInt32(AppSettings("TimerInterval"))
        End Get
    End Property

    Public Shared ReadOnly Property AdminEmail() As String
        Get
            Return AppSettings("AdminEmail")
        End Get
    End Property

    Public Shared ReadOnly Property AdminEmailPassword() As String
        Get
            Return AppSettings("AdminEmailPassword")
        End Get
    End Property

    Public Shared ReadOnly Property ReceiverEmails() As String
        Get
            Return AppSettings("ReceiverEmails")
        End Get
    End Property

    Public Shared ReadOnly Property TemplateBaseFolder() As String
        Get
            Return AppSettings("TemplateBaseFolder")
        End Get
    End Property

    Public Shared ReadOnly Property SmtpServer() As String
        Get
            Return AppSettings("MIMS_WRS.SMTPServer")
        End Get
    End Property

    Public Shared ReadOnly Property SmtpUseSSL() As String
        Get
            Return AppSettings("smtpusessl")
        End Get
    End Property

    Public Shared ReadOnly Property SmtpPort() As Int32
        Get
            Return Convert.ToInt32(AppSettings("SmtpPort"))
        End Get
    End Property

    Public Shared ReadOnly Property DateFormat() As String
        Get
            Return AppSettings("DateFormat")
        End Get
    End Property

    Public Shared ReadOnly Property DecimalFormat() As String
        Get
            Return "#########.00"
        End Get
    End Property
    Public Shared ReadOnly Property DecimalFormat4() As String
        Get
            Return "#,####.0000"
        End Get
    End Property
    Public Shared ReadOnly Property DecimalFormat2() As String
        Get
            Return "#,###.00"
        End Get
    End Property
    Public Shared ReadOnly Property DecimalFormatEx() As String
        Get
            Return "#,####.0"
        End Get
    End Property
    Public Shared ReadOnly Property DecimalFormatEx2() As String
        Get
            Return "#,####.00"
        End Get
    End Property

    Public Shared ReadOnly Property NumericFormat() As String
        Get
            Return "#,###"
        End Get
    End Property

    Public Shared ReadOnly Property Culture() As String
        Get
            Return AppSettings("Culture")
        End Get
    End Property

    Public Shared ReadOnly Property PageSize() As Int32
        Get
            Return Convert.ToInt32(AppSettings("PageSize"))
        End Get
    End Property

    Public Shared ReadOnly Property ProductImagePath() As String
        Get
            Return AppSettings("ProductImagePath")
        End Get
    End Property


    Public Shared ReadOnly Property ProStatReportImageSize() As Integer
        Get
            Return Convert.ToInt32(AppSettings("ProStatReportImageSize"))
        End Get
    End Property

    Public Shared ReadOnly Property BOSalesReportImageSize() As Integer
        Get
            Return Convert.ToInt32(AppSettings("BOSalesReportImageSize"))
        End Get
    End Property

    Public Shared ReadOnly Property AvailReportImageSize() As Integer
        Get
            Return Convert.ToInt32(AppSettings("AvailReportImageSize"))
        End Get
    End Property

    Public Shared ReadOnly Property EnableScheduling() As Boolean
        Get
            Return Convert.ToBoolean(Convert.ToInt32(AppSettings("EnableScheduling")))
        End Get
    End Property

    Public Shared ReadOnly Property GuideFilePath() As String
        Get
            Return AppSettings("GuideFilePath")
        End Get
    End Property

End Class
